/*
 * @Author: Zhang
 * @Date: 2020-05-17 12:15:59
 * @LastEditTime: 2020-11-04 16:28:17
 * @LastEditors: firesky
 */
import request from '@/utils/request'

/**
* 登录
*/
export function login(data) {
  return request({
    url: '/api/interRun?type=setLogin',
    method: 'post',
    data
  })
}

export function getInfo(data) {
  return request({
    url: '/user/info',
    method: 'post',
    data
  })
}

/**
* 退出
*/
export function logout(data) {
  return request({
    url: '/api/interRun?type=logout',
    method: 'post',
    data
  })
}

/**
* 退出（清缓存）
*/
export function clearStorage(params) {
  return request({
    url: '/api/interRun?type=logout&is_ret=1',
    method: 'get',
    params
  })
}

/**
* 获取账套
*/
export function accountingMode(params) {
  return request({
    url: '/api/interRun?type=getAccountingMode',
    method: 'get',
    params
  })
}

/**
* 获取账套(新)
*/
export function getdbName(params) {
  return request({
    url: '/api/getdbName',
    method: 'get',
    params
  })
}

/**
* 权限菜单
*/
export function FQXMenu(data) {
  return request({
    url: '/api/FQXMenu',
    method: 'post',
    data
  })
}

/**
* 修改密码
*/
export function updatePass(data) {
  return request({
    url: '/api/updatePass',
    method: 'post',
    data
  })
}

/**
*shu
*/
export function FWelocome(data) {
  return request({
    url: '/api/homeData',
    method: 'post',
    data
  })
}

export function getsmsCode(data) {
  return request({
    url: '/api/getsmsCode',
    method: 'post',
    data
  })
}

export function UpdateSmsPass(data) {
  return request({
    url: '/api/UpdateSmsPass',
    method: 'post',
    data
  })
}

